﻿@namespace SwashbucklerDiary.Components

<MAppBar App="true"
         Elevation="0">
    <MButton Icon="true"
             OnClick="OnClick">
        <MIcon>
            mdi-arrow-left
        </MIcon>
    </MButton>

    <MToolbarTitle Class="font-weight-bold">
        @Title
        @ChildContent
    </MToolbarTitle>
</MAppBar>

@code {
    [Parameter]
    public string? Title { get; set; }
    [Parameter]
    public EventCallback<MouseEventArgs> OnClick { get; set; }
    [Parameter]
    public RenderFragment? ChildContent { get; set; }
}